<%-- 
    Document   : project
    Created on : Jul 17, 2011, 5:07:22 PM
    Author     : cedric.creusot
--%>

<div class="titleContainer">
    <h1><spring:message code="project.maintitle"/>: <c:out value="${project.title}"></c:out></h1>
</div>
<div class="module">
    <p><spring:message code="projects.list"/>:</p>
<c:forEach var="diagramm" items="${diagrammList}">

    <div class="li_elem_left">
    </div>
        <b>Title : </b><c:out value="${diagramm.name}"/><br>
         <b>Action : </b>
         <a href="./index.htm?proj=${project.id}&diag=${diagramm.id}">open</a> 
         <logic:equal name="userid" value="${project.ownerId}">
         <a href="./index.htm?proj=${project.id}&diag=${diagramm.id}&action=delete">delete</a>
         </logic:equal>
         <br>
         <b>Description : </b><br>
         <c:out value="${diagramm.description}"/>
</c:forEach>
</div>
<div id="blocderoulant"> 
    <div id="deroulant">
        <form:form modelAttribute="diagrammInfo" class="module">
        <div class="element">            
            <label><spring:message code="diagram.name"/>: </label>
            <form:input path="name" />
        </div>
        <div class="element">
            <label><spring:message code="diagram.description"/>: </label>
            <form:textarea path="description" />
        </div>
        <input type="submit"/>
        </form:form>
    </div><div id="blocaction"> 
        <spring:message code="diagram.create"/>
    </div>
</div>
